﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace ShopSystem.Model.Migrations
{
    public partial class init2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_Commodities",
                table: "Commodities");

            migrationBuilder.RenameTable(
                name: "Commodities",
                newName: "Commodity");

            migrationBuilder.AddPrimaryKey(
                name: "PK_Commodity",
                table: "Commodity",
                column: "Id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_Commodity",
                table: "Commodity");

            migrationBuilder.RenameTable(
                name: "Commodity",
                newName: "Commodities");

            migrationBuilder.AddPrimaryKey(
                name: "PK_Commodities",
                table: "Commodities",
                column: "Id");
        }
    }
}
